#include "Signal.h"
// -----------------------------------
class base{
  double *array;
public:
  base();
  ~base();
};

base::base(){
  cout << "TOP base::base()\n";
  array = new double[256];
  cout << "BOT base::base()\n";
}

base::~base(){
  cout << "TOP base::~base()\n";
  delete []array;
  cout << "BOT base::~base()\n";
}
// ----------------------------------
class test:public base{
private:
  MCArray* lattice;
  const gsl_rng_type* gsl_T;
  gsl_rng* gsl_r;
public:
  test();
  ~test();
  void show();
};

test::test(){
  cout << "TOP test::test()\n";
  lattice = new MCArray(256);
  // cout << "lattice->size=" << lattice->size << "\n";
  gsl_rng_env_setup();
  gsl_T = gsl_rng_default;
  gsl_r = gsl_rng_alloc(gsl_T);
  gsl_rng_set(gsl_r,0);
  cout << "BOT test::test()\n";
}

test::~test(){
  delete lattice;
  gsl_rng_free(gsl_r);
}

void test::show(){
}
// ----------------------------------
int main(){
  test* tc=new test();
  delete tc;
  return 0;
}
